home *** CD-ROM | disk | FTP | other *** search
/ Joystick Magazine 2000 November / cd joystick no120 novembre 2000 cd 1.iso / data / demos / gunlok / data1.cab / Program_Executable_Files / scripts / fishy.gsh < prev    next >
Text File  |  2000-08-22  |  1KB  |  55 lines

  1. // defines fishy
  2. ////////////////////////////////////////////////////////////////////////////////////
  3.  
  4. // start wrapper - prevent multiple inclusions or recursive inclusions
  5.  
  6. //(this currently causes 'unrecognized preprocessor directive' warnings, until implemented)
  7. #ifndef INCLUDED_FISHY_GSH
  8. #define INCLUDED_FISHY_GSH
  9.  
  10. ////////////////////////////////////////////////////////////////////////////////////
  11.  
  12. #include "defaults.gsh"
  13. #include "lasers.gsh"
  14.  
  15. hierarchy Hcy_fishy
  16. {
  17.     file "units\fishy.RIF"
  18.     name "fishy"
  19.     hotspot "dum flash"
  20.  
  21. }
  22.  
  23. character Chr_fishy : Chr_DefaultBaddie
  24. {
  25.     turning speed   0.3    // this is in revolutions per second
  26.     walking speed   1.0    // this is in animation cycles per second
  27.     weapon          enemy laser
  28.     strength        5    // initial strength points
  29.     aim             1    // how many degrees off target he can be at most
  30.     sight angle        80    // in degrees
  31.     sight range     8    // in metres
  32.     hearing range    20    // in metres
  33.     aggression    0.9    // from 0 to 1
  34.     gun yaw angle    0    // in degrees
  35.     description        drone description
  36. }
  37.  
  38. role Rol_fishy : Rol_DefaultRobot
  39. {
  40.     shape            Hcy_fishy
  41.     
  42.     character        Chr_fishy
  43.         
  44.     identifier        "fishy"
  45.  
  46.  
  47.  
  48.     ai                bot
  49. }
  50.  
  51. ////////////////////////////////////////////////////////////////////////////////////
  52.  
  53. // end wrapper - for preventing multiple or recursive inclusions
  54. #endif // !INCLUDED_FISHY_GSH
  55.